<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<style type="text/css">
    .prtext {
    color: #000000;
    font-family: tahoma;
    font-size: 11px;
    }
    .prhead {
    color: #000000;
    font-family: arial;
    font-size: 14px;
    }
    .prhead_tnr {
    color: #000000;
    font-family: Times New Roman;
    }
    .prtext_blacksmall {
	font-size: 11px;
	color: #00000;
	font-family: tahoma;
    }
    .prtitle {
	font-size: 18px;
	color: #000000;
	font-family: tahoma;
	font-weight: bold;
    }
    </style>
<title><?php echo $title;?></title>
<link type="text/css" href="<?php echo site_url('css_print/main.css') ?>" rel="stylesheet"/>
</head>
<body onload="window.print();">
<table width="700" cellspacing="0" cellpadding="0" border="0" align="center">
    <tbody>
      <tr>
       <td class="prtext">
        <table cellspacing="0" cellpadding="0" border="0">
          <tbody>
           <tr>
            <td width="90" valign="top"><img src="<?php echo site_url('images/r4.jpg') ?>" width="110px"></td>
            <td width="710" valign="top" class="prhead_tnr" align="left">
              <div align="center" style="font-size: 20px; margin-left: 5px; margin-top: 15px"><b>KEMENTERIAN AGAMA</b></div>
              <div align="center" style="font-size: 22px; margin-left: 5px; margin-top: 5px"><b>INSTITUT AGAMA ISLAM NEGERI (IAIN) MATARAM</b></div>
              <div align="center" style="font-size: 16px; margin-left: 5px; margin-top: 5px">Jalan Pendidikan No. 35 Telp. (0370) 621298 - 625337 - Fax. 625337</div>
              <br>
            </td>
           </tr>
           <tr>
            <td colspan="2"><hr color="#000000" size="5" /></td>
           </tr>
          </tbody>
        </table>
		
<?php if($dataMhs): ?>
<div align="center"><h3>KARTU RENCANA STUDI (KRS)</h3><br /></div>
<table width="100%" border="0" cellspacing="0" cellpadding="3">
  <tr>
    <td width="17%">Nama</td>
    <td width="33%">:&nbsp;&nbsp;<?php echo $dataMhs->NAMA ?></td>
	<td width="17%">Alamat Asal</td>
    <td width="33%">:&nbsp;&nbsp;<?php echo $dataMhs->ALAMAT_ASAL ?></td>
  </tr>
  <tr>
    <td>NIM</td>
    <td>:&nbsp;&nbsp;<?php echo $dataMhs->NIM?></td>
	<td>Alamat</td>
    <td>:&nbsp;&nbsp;<?php echo $dataMhs->ALAMAT ?></td>
  </tr>
  <tr>
    <td>Fakultas / PS</td>
    <td>:&nbsp;&nbsp;<?php echo $dataprodi->NAMA_FAKULTAS?> / <?php echo $dataprodi->NAMA_PRODI?></td>
	<td>Dosen Wali / PA</td>
	<td>:&nbsp;&nbsp;<?php echo $pa->DOSEN_PEMBIMBING.", ".$pa->GELAR ?></td>
  </tr>
  <tr>
	<td>Angkatan / Smt</td>
    <td>:&nbsp;&nbsp;<?php echo "20".substr($dataMhs->NIM,3,2) ?> / <?php echo $this->system_model->getSemesterSkrg($dataMhs->NIM,$dataprodi->KODE_TAHUN,$dataprodi->KODE_SEMESTER); ?></td>
    <td>&nbsp;</td>
    <td>&nbsp;&nbsp;</td>
  </tr>
  <!--<tr>
	<td>IP semester :</td>
    <td>:&nbsp;&nbsp;<?php echo $ips ?></td>
  </tr>
  <tr>
	<td>IPK :</td>
	<td>:&nbsp;&nbsp;--><?php //echo $this->gpa_com->ipk_processor_sirak($dataMhs->NIM) ?><!--</td>
  </tr>-->
</table>
<br />
<table border="1" cellpadding="0" cellspacing="0" id="table_print" table width="800">
      <tr align="center">
        <th width="38px">No.</th>
        <th width="150px">Kode MK</th>
        <th width="300px">Nama Mata Kuliah</th>
        <th width="60px">SKS</th>
        <th>Kelas</th>
      </tr>
      <?php $i=1;
      $tot=0;
	  if (!$krs) {
	  		echo '<tr>';
			echo '<td colspan="5">Data KRS tidak tersedia..</td>';
			echo '</tr>';
	  } else
	  	foreach ($krs as $krs) {
	  		echo '<tr>';
			echo '<td align="center">'.$i.'.</td>';
			echo '<td align="left">&nbsp;&nbsp;'.$krs->KODE_MK.'</td>';
			echo '<td>&nbsp;&nbsp;'.ucwords(strtolower($krs->NAMA_MK)).'</td>';
			echo '<td align="center">'.$krs->SKS.'</td>';
			echo '<td align="center">'.$krs->KELAS.'</td>';
			echo '</tr>';
			$i++;
            $tot=$tot+$krs->SKS;
	 	}
      echo '<tr>';
      if($getDataKhs)
      $ips=$this->gpa_com->ips($getDataKhs,'NILAI','SKS');
      else
      $ips=0;
      echo '<td align="left" colspan="3">Indek Prestasi (IP) semester sebelumnya : '.number_format($ips, 2, '.', '').
      '<br />Indek Prestasi Kumulatif &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;: '.
      $this->gpa_com->ipk_processor_sirak($dataMhs->NIM).
      '<br />Jumlah SKS semester yang akan ditempuh</td>';
      echo '<td align="center" valign="bottom">'.$tot.'</td>';
      echo '<td align="center">&nbsp;</td>';
      echo '</tr>';
      ?>

</table>
    <br />

<?php else: ?>
<h3>Tidak Ada data KRS untuk Semester dan Tahun Ajaran Tersebut..</h3>
<?php endif; ?>

</td>
</tr>
</tbody>
</table>
</body>
</html>